/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Supporter;

import java.io.InputStream;
import java.util.Vector;
import javax.microedition.media.Manager;
import javax.microedition.media.Player;

/**
 *
 * @author Van persie
 */
public class SoundSupporter {
    Vector soundSource = null;
    public SoundSupporter()
    {
        soundSource = new Vector();
        
        
        
    }
    
    public Player getSound(String pathFile)
    {
        
        InputStream inStr = getClass().getResourceAsStream(pathFile);
        Player temp = null;
        try{
             temp = Manager.createPlayer(inStr, "audio/X-wav");
        }catch(Exception e) {}
        return temp;
    }
}
